package com.myshop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 订单内部的具体商品展示项(Item)表实体类
 *
 * @author makejava
 * @since 2023-07-21 21:06:40
 */
@Data
@Accessors(chain = true)
public class Item implements Serializable {
    @TableId(type = IdType.AUTO)
    //订单项的唯一标识
    private Integer id;
    //订单编号是字符串类型但是也是唯一标识
    private String oid;
    //商品的唯一主键
    private Integer pid;
    //订单项的小计
    private Double count;
    //订单项的数量
    private Integer num;
}

